@extends('admin.layout')
@section('content')
<!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                用户管理
                <small>编辑</small>
            </h1>
            <ol class="breadcrumb">
                <li><a href="#"><i class="fa fa-dashboard"></i> 后台主页</a></li>
                <li><a href="#">用户管理</a></li>
                <li class="active">编辑用户</li>
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <!-- left column -->
                <div class="col-md-12">
                    <!-- general form elements -->
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            <h3 class="box-title">编辑工作账号信息</h3>
                        </div><!-- /.box-header -->
                       
                      
                        <!-- form start -->   
                        <form role="form" action="{{ url('/admin/user/update_back') }}"  method="post" >
                        {{  csrf_field() }}							
                    
                            <div class="box-body">

							
                              @if (count($errors) > 0)
						   		<div class="alert alert-warning alert-dismissable">
						   		<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
	           				 	<h4><i class="icon fa fa-warning"></i> 警告!</h4>
					      		 <ul>
					         		 @foreach ($errors->all() as $error)
					         		 <li>{{ $error }}</li>
							    	 @endforeach
					       		 </ul>
						   		</div>
							@endif
                 		     <input name = 'id' value = "{{ $data -> id }}" type="hidden">
                                <div class="form-group">
                                    <label for="exampleInputName">工作账号</label>
                                    <input name = 'username' value = "{{ $data -> username }}" type="text" class="form-control" id="exampleInputEmail1"
                                           placeholder="请输入用户名">
                                </div>                              
								<div class="form-group">
                                    <label for="exampleInputEmail">邮箱</label>
                                    <input name = 'email' value = "{{ $data -> email }}" type="text" class="form-control" id="exampleInputPassword1"
                                           placeholder="请输入邮箱地址">
                                </div>

                                <div class="form-group">
                                        <select name="status" class="form-control">
                                        <option value="0">启用</option>
                                        <option value="1">禁用</option>
                                        </select>
                                </div>
                                
                            	</div><!-- /.box-body -->
                            <div class="box-footer">
                                <button type="submit" class="btn btn-primary">提交</button>
                                <button type="submit" class="btn btn-default">重写</button>
                            </div>
                        </form>
                    </div><!-- /.box -->                
               
        </section><!-- /.content -->
    </div><!-- /.content-wrapper -->
@endsection